import io
import sys

from proxypool.scheduler import Scheduler

# sys系统，stdout是标准输出，buffer是缓冲区，将进程
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')


def main():
    try:
        s = Scheduler()
        s.run()
    except:
        main()

if __name__ == '__main__':
    main()